import os

def load_text_file(file_name):
    with open(file_name, 'r', encoding='utf-8') as f:
        return f.read()

def save_image(file_name, img_data):
    with open(file_name, 'wb') as f:
        f.write(img_data)

def save_text_file(file_name, content):
    with open(file_name, 'w', encoding='utf-8') as f:
        f.write(content)

def load_image(file_name):
    with open(file_name, 'rb') as f:
        return f.read()

